net: ena: enable the interrupt_moderation in driver_supported_features
authorArthur Kiyanovski <akiyano@amazon.com>
Mon, 16 Sep 2019 11:31:29 +0000 (14:31 +0300)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 19 Nov 2019 01:43:33 +0000 (01:43 +0000)
commitd7856dfb04eab0b07fffe0a1d044d892dd176955
tree4575e136f0adaf657b687bf63319271e2442fa91
parent24f9dfb5da762d98b83d05fd7e8d6263587b038c
net: ena: enable the interrupt_moderation in driver_supported_features

Add driver_supported_features to host_host info which is a new API used to
communicate to the device which features are supported by the driver.

Add the interrupt_moderation bit to host_info->driver_supported_features
and enable it to signal the device that this driver supports interrupt
moderation properly.

Reserved bits are for features implemented in the future

Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Gbp-Pq: Topic features/all/ena
Gbp-Pq: Name 0005-net-ena-enable-the-interrupt_moderation-in-driver_su.patch
drivers/net/ethernet/amazon/ena/ena_admin_defs.h
drivers/net/ethernet/amazon/ena/ena_netdev.c